<!DOCTYPE html>
<html  lang="zh-CN" >
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="theme-color" content="#fff" id="theme-color">
  <meta name="description" content="深山磨柴斧，一鸣震江湖">
  <link rel="icon" href="/img/ic_head.jpg">
  <title>MacOS BigSur安卓设备投屏控制Scrcpy安装,Mac上的Total Control</title>
  
  
  <meta property="og:title" content="MacOS BigSur安卓设备投屏控制Scrcpy安装,Mac上的Total Control">
  
  
  <meta property="og:url" content="http://example.com/2020/11/21/MacOS%20BigSur%E5%AE%89%E5%8D%93%E8%AE%BE%E5%A4%87%E6%8A%95%E5%B1%8F%E6%8E%A7%E5%88%B6Scrcpy%E5%AE%89%E8%A3%85,Mac%E4%B8%8A%E7%9A%84Total%20Control/index.html">
  
  
  <meta property="og:img" content="/img/ic_head.jpg">
  
  
  <meta property="og:img" content="深山磨柴斧，一鸣震江湖">
  
  
  <meta property="og:type" content="article">
  <meta property="og:article:published_time" content="2020-11-21">
  <meta property="og:article:modified_time" content="2021-04-14">
  <meta property="og:article:author" content="Cupster">
  
  
  <meta property="og:article:tag" content="MacOS">
  
  <meta property="og:article:tag" content="Scrcpy">
  
  
  
  
  <script>
    // control reverse button
    var reverseDarkList = {
      dark: 'light',
      light: 'dark'
    };
    var themeColor = {
      dark: '#1c1c1e',
      light: '#fff'
    }
    // get the data of css prefers-color-scheme
    var getCssMediaQuery = function() {
      return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
    };
    // reverse current darkmode setting function
    var reverseDarkModeSetting = function() {
      var setting = localStorage.getItem('user-color-scheme');
      if(reverseDarkList[setting]) {
        setting = reverseDarkList[setting];
      } else if(setting === null) {
        setting = reverseDarkList[getCssMediaQuery()];
      } else {
        return;
      }
      localStorage.setItem('user-color-scheme', setting);
      return setting;
    };
    // apply current darkmode setting
    var setDarkmode = function(mode) {
      var setting = mode || localStorage.getItem('user-color-scheme');
      if(setting === getCssMediaQuery()) {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[setting];
      } else if(reverseDarkList[setting]) {
        document.documentElement.setAttribute('data-user-color-scheme', setting);
        document.getElementById('theme-color').content = themeColor[setting];
      } else {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[getCssMediaQuery()];
      }
    };
    setDarkmode();
  </script>
  <script>
    function loadScript(url, cb) {
      var script = document.createElement('script');
      script.src = url;
      if (cb) script.onload = cb;
      script.async = true;
      document.body.appendChild(script);
    }
  </script>
  
  <link rel="preload" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css" as="style" >
  <link rel="preload" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css" as="style" >
  
  <link rel="preload" href="/js/lib/lightbox/baguetteBox.min.js" as="script">
  <link rel="preload" href="/js/lib/lightbox/baguetteBox.min.css" as="style" >
  
  
  <link rel="preload" href="/js/lib/lozad.min.js" as="script">
  
  
  
  
  
  
  
  
<link rel="stylesheet" href="/css/main.css">

  
  
<link rel="stylesheet" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css">

  
  
<link rel="stylesheet" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css">

  
  
<link rel="stylesheet" href="/js/lib/lightbox/baguetteBox.min.css">

  
  
  
  
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
  <div class="wrapper">
    
    <nav class="navbar">
  <div class="navbar-logo">
    <span class="navbar-logo-main">
      
      <img class="navbar-logo-img" src="/img/ic_head.jpg" alt="logo">
      
      <span class="navbar-logo-dsc">不负明天</span>
    </span>
  </div>
  <div class="navbar-menu">
    
    <a href="/" class="navbar-menu-item">
    
    首页
    
    </a>
    
    <a href="/archives" class="navbar-menu-item">
    
    归档
    
    </a>
    
    <a href="/tags" class="navbar-menu-item">
    
    标签
    
    </a>
    
    <a href="/categories" class="navbar-menu-item">
    
    分类
    
    </a>
    
    <a href="/about" class="navbar-menu-item">
    
    关于
    
    </a>
    
    <a href="/links" class="navbar-menu-item">
    
    友链
    
    </a>
    
    <a class="navbar-menu-item darknavbar" id="dark"><i class="iconfont icon-weather"></i></a>
    <a class="navbar-menu-item searchnavbar" id="search"><i class="iconfont icon-search" style="font-size: 1.2rem; font-weight: 400;"></i></a>
  </div>
</nav>
    
    <div id="local-search" style="display: none;">
      <input class="navbar-menu-item" id="search-input" placeholder="请输入搜索内容...">
      <div id="search-content"></div>
    </div>
    
    <div class="section-wrap">
      <div class="container">
        <div class="columns">
          <main class="main-column">
<article class="card card-content">
  <header>
    <h1 class="post-title">
      MacOS BigSur安卓设备投屏控制Scrcpy安装,Mac上的Total Control
    </h1>
  </header>
  <div class="post-meta post-show-meta">
    <time datetime="2020-11-21T04:00:11.000Z">
      <i class="iconfont icon-calendar" style="margin-right: 2px;"></i>
      <span>2020-11-21</span>
    </time>
    
    <span class="dot"></span>
    
    <a href="/categories/Dev-Base/" class="post-meta-link">Dev Base</a>
    
    
    
    <span class="dot"></span>
    <span>611 字</span>
    
  </div>
  
  <div class="post-meta post-show-meta" style="margin-top: -10px;">
    <div style="display: flex; align-items: center;">
      <i class="iconfont icon-biaoqian" style="margin-right: 2px; font-size: 1.15rem;"></i>
      
      
        <a href="/tags/MacOS/" class="post-meta-link">MacOS</a>
      
      
      <span class="dot"></span>
      
        <a href="/tags/Scrcpy/" class="post-meta-link">Scrcpy</a>
      
    </div>
  </div>
  
  </header>
  <div id="section" class="post-content">
    <p>本文是参考<a target="_blank" rel="noopener" href="https://www.iplaysoft.com/scrcpy.html">链接</a>并结合自己使用整理的Scrcpy使用笔记，以方便自己快速搭建高效开发环境。</p>
<h1 id="1-简介"><a href="#1-简介" class="headerlink" title="1.简介"></a>1.简介</h1><p>windows平台要投屏控制Android设备，有Total Control免费版可满足日常开发使用，但TotalControl不支持MacOS平台；</p>
<p>Google家的Vysor免费版有广告、画质又差，Vysor Pro收费&amp;贵；</p>
<h3 id="Scrcpy几乎集投屏控制软件的所有优点"><a href="#Scrcpy几乎集投屏控制软件的所有优点" class="headerlink" title="Scrcpy几乎集投屏控制软件的所有优点"></a>Scrcpy几乎集投屏控制软件的所有优点</h3><ol>
<li>开源</li>
<li>免费</li>
<li>多平台</li>
<li>支持wifi</li>
<li>支持高码率</li>
<li>低延迟（设备不是太烂的前提下）</li>
<li>自定义投屏码率</li>
<li><del>上班使用鼠标摸鱼玩手机</del></li>
<li>屏幕录像</li>
<li>快捷截屏</li>
<li>鼠标控制</li>
<li>键盘输入</li>
<li>pc剪切板</li>
<li>拖拽文件传输</li>
<li>拖拽APK安装</li>
<li>支持自动横竖屏</li>
</ol>
<p>更多优点自行探索，不赘述~ ~</p>
<h3 id="缺点也还是有，但是无关紧要吧"><a href="#缺点也还是有，但是无关紧要吧" class="headerlink" title="缺点也还是有，但是无关紧要吧"></a>缺点也还是有，但是无关紧要吧</h3><ol>
<li>要求Android 5.0+<h1 id="2-安装"><a href="#2-安装" class="headerlink" title="2.安装"></a>2.安装</h1></li>
</ol>
<h4 id="2-1Windows-直接下载并安装"><a href="#2-1Windows-直接下载并安装" class="headerlink" title="2.1Windows 直接下载并安装"></a>2.1Windows 直接下载并安装</h4><p>连接好数据线后，电脑上执行 scrcpy.exe 即可启动软件使用</p>
<h4 id="2-2Mac需使用HomeBrew命令进行安装"><a href="#2-2Mac需使用HomeBrew命令进行安装" class="headerlink" title="2.2Mac需使用HomeBrew命令进行安装"></a>2.2Mac需使用HomeBrew命令进行安装</h4><h6 id="2-2-1-安装HomeBrew，已安装可跳过"><a href="#2-2-1-安装HomeBrew，已安装可跳过" class="headerlink" title="2.2.1.安装HomeBrew，已安装可跳过"></a>2.2.1.安装HomeBrew，已安装可跳过</h6><pre class="highlight"><span class="line">/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</span><br></pre>

<h6 id="2-2-2-安装-adb，已安装可跳过"><a href="#2-2-2-安装-adb，已安装可跳过" class="headerlink" title="2.2.2.安装 adb，已安装可跳过"></a>2.2.2.安装 adb，已安装可跳过</h6><pre class="highlight"><span class="line">brew cask install android-platform-tools</span><br></pre>

<h6 id="2-2-3-安装-Scrcpy"><a href="#2-2-3-安装-Scrcpy" class="headerlink" title="2.2.3.安装 Scrcpy"></a>2.2.3.安装 Scrcpy</h6><p>安装速度慢，可更换镜像源，可参考<a target="_blank" rel="noopener" href="https://mirror.tuna.tsinghua.edu.cn/help/homebrew/">清华大学HomeBrew镜像源文档</a></p>
<pre class="highlight"><span class="line">brew install scrcpy</span><br></pre>

<h1 id="3-使用"><a href="#3-使用" class="headerlink" title="3.使用"></a>3.使用</h1><h4 id="3-1-使用条件"><a href="#3-1-使用条件" class="headerlink" title="3.1 使用条件"></a>3.1 使用条件</h4><ol>
<li>需配合adb，电脑得有adb环境</li>
<li>手机开发者页面中，需开启USB调试</li>
<li>Android设备首次调试，需点击允许调试</li>
</ol>
<h4 id="3-2-使用"><a href="#3-2-使用" class="headerlink" title="3.2 使用"></a>3.2 使用</h4><p><strong>若手机有提示是否允许，须点击允许。</strong></p>
<h6 id="3-2-1单设备"><a href="#3-2-1单设备" class="headerlink" title="3.2.1单设备"></a>3.2.1单设备</h6><p>在满足3.1条件得前提下，第一次用USB连接电脑，在命令行窗口输入并执行 scrcpy 即可</p>
<pre class="highlight"><span class="line">scrcpy</span><br></pre>

<h6 id="3-2-2多设备"><a href="#3-2-2多设备" class="headerlink" title="3.2.2多设备"></a>3.2.2多设备</h6><ol>
<li>先获取设备列表<pre class="highlight"><span class="line">adb devices -l</span><br></pre></li>
</ol>
<img src='https://gitee.com/cupster/picbed/raw/master/uPic/20201218171739_XRORKe.png'/>

<ol start="2">
<li>连接指定设备<pre class="highlight"><span class="line"><span class="meta">#</span><span class="bash"> scrcpy -s 设备代号</span></span><br><span class="line">scrcpy -s d8963b91</span><br><span class="line"><span class="meta">#</span><span class="bash"> 或无线设备 （IP地址从设备的WiFi设置页找）</span></span><br><span class="line">scrcpy -s 192.168.1.3:5555</span><br></pre></li>
</ol>
<img src='https://gitee.com/cupster/picbed/raw/master/uPic/20201218172312_bbIocy.png'/>

<ol start="3">
<li>无线投屏控制Android设备</li>
</ol>
<p><em><strong>前提:安装了adb wifi插件，&amp;&amp; 电脑与无线设备在同一网段的局域网</strong></em></p>
<p>参考 ： <a target="_blank" rel="noopener" href="https://blog.csdn.net/Cupster/article/details/110480863">Android Studio ADB WIFI无线调试APP正确用法</a></p>
<pre class="highlight"><span class="line"><span class="meta">#</span><span class="bash"> 1.连接 （IP地址从设备的WiFi设置页找）</span></span><br><span class="line">adb connect 192.168.1.3:5555</span><br><span class="line"><span class="meta">#</span><span class="bash"> scrcpy -s 无线设备代号</span> </span><br><span class="line">scrcpy -s 192.168.1.3:5555</span><br></pre>

<img src='https://gitee.com/cupster/picbed/raw/master/uPic/20201218173533_9pwlcn.png'/>


<h1 id="4-scrcpy命令大全-快捷键大全"><a href="#4-scrcpy命令大全-快捷键大全" class="headerlink" title="4.scrcpy命令大全/快捷键大全"></a>4.scrcpy命令大全/快捷键大全</h1><p>参考 <a target="_blank" rel="noopener" href="https://blog.csdn.net/Cupster/article/details/111386811">Scrcpy命令大全&amp;快捷键</a></p>

  </div>
  <div>
  
  <div class="post-note note-warning copyright" style="margin-top: 42px">
    <p><span style="font-weight: bold;">作者：</span><a target="_blank" rel="nofollow noopener noreferrer" href="http://example.com/about">Cupster</a></p>
    <p><span style="font-weight: bold;">文章链接：</span><a target="_blank" rel="nofollow noopener noreferrer" href="http://example.com/2020/11/21/MacOS%20BigSur%E5%AE%89%E5%8D%93%E8%AE%BE%E5%A4%87%E6%8A%95%E5%B1%8F%E6%8E%A7%E5%88%B6Scrcpy%E5%AE%89%E8%A3%85,Mac%E4%B8%8A%E7%9A%84Total%20Control/">http://example.com/2020/11/21/MacOS%20BigSur%E5%AE%89%E5%8D%93%E8%AE%BE%E5%A4%87%E6%8A%95%E5%B1%8F%E6%8E%A7%E5%88%B6Scrcpy%E5%AE%89%E8%A3%85,Mac%E4%B8%8A%E7%9A%84Total%20Control/</a></p>
    <p><span style="font-weight: bold;">版权声明：</span>本博客所有文章除特别声明外，均采用<a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">CC BY-NC-SA 4.0 协议</a>。转载请注明出处！</p>
  </div>
  
  </div>
</article>
<div class="nav">
  
  <div class="nav-item-prev">
    <a href="/2020/11/22/MacOS BigSur安卓设备投屏控制Scrcpy命令大全&amp;快捷键/" class="nav-link">
      <i class="iconfont icon-left nav-prev-icon"></i>
      <div>
        <div class="nav-label">上一篇</div>
        
        <div class="nav-title">MacOS BigSur安卓设备投屏控制Scrcpy命令大全&amp;快捷键 </div>
        
      </div>
    </a>
  </div>
  
  
  <div class="nav-item-next">
    <a href="/2020/11/16/iterm使用：服务器快捷连接/" class="nav-link">
      <div>
        <div class="nav-label">下一篇</div>
        
        <div class="nav-title">iTerm使用：服务器快捷连接 </div>
        
      </div>
      <i class="iconfont icon-right nav-next-icon"></i>
    </a>
  </div>
  
</div>

<div class="card card-content toc-card" id="mobiletoc">
  <div class="toc-header"><i class="iconfont icon-menu" style="padding-right: 2px;"></i>目录</div>
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#1-%E7%AE%80%E4%BB%8B"><span class="toc-text">1.简介</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Scrcpy%E5%87%A0%E4%B9%8E%E9%9B%86%E6%8A%95%E5%B1%8F%E6%8E%A7%E5%88%B6%E8%BD%AF%E4%BB%B6%E7%9A%84%E6%89%80%E6%9C%89%E4%BC%98%E7%82%B9"><span class="toc-text">Scrcpy几乎集投屏控制软件的所有优点</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BC%BA%E7%82%B9%E4%B9%9F%E8%BF%98%E6%98%AF%E6%9C%89%EF%BC%8C%E4%BD%86%E6%98%AF%E6%97%A0%E5%85%B3%E7%B4%A7%E8%A6%81%E5%90%A7"><span class="toc-text">缺点也还是有，但是无关紧要吧</span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#2-%E5%AE%89%E8%A3%85"><span class="toc-text">2.安装</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#2-1Windows-%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85"><span class="toc-text">2.1Windows 直接下载并安装</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-2Mac%E9%9C%80%E4%BD%BF%E7%94%A8HomeBrew%E5%91%BD%E4%BB%A4%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85"><span class="toc-text">2.2Mac需使用HomeBrew命令进行安装</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-1-%E5%AE%89%E8%A3%85HomeBrew%EF%BC%8C%E5%B7%B2%E5%AE%89%E8%A3%85%E5%8F%AF%E8%B7%B3%E8%BF%87"><span class="toc-text">2.2.1.安装HomeBrew，已安装可跳过</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-2-%E5%AE%89%E8%A3%85-adb%EF%BC%8C%E5%B7%B2%E5%AE%89%E8%A3%85%E5%8F%AF%E8%B7%B3%E8%BF%87"><span class="toc-text">2.2.2.安装 adb，已安装可跳过</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-3-%E5%AE%89%E8%A3%85-Scrcpy"><span class="toc-text">2.2.3.安装 Scrcpy</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#3-%E4%BD%BF%E7%94%A8"><span class="toc-text">3.使用</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#3-1-%E4%BD%BF%E7%94%A8%E6%9D%A1%E4%BB%B6"><span class="toc-text">3.1 使用条件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#3-2-%E4%BD%BF%E7%94%A8"><span class="toc-text">3.2 使用</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#3-2-1%E5%8D%95%E8%AE%BE%E5%A4%87"><span class="toc-text">3.2.1单设备</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#3-2-2%E5%A4%9A%E8%AE%BE%E5%A4%87"><span class="toc-text">3.2.2多设备</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#4-scrcpy%E5%91%BD%E4%BB%A4%E5%A4%A7%E5%85%A8-%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8"><span class="toc-text">4.scrcpy命令大全&#x2F;快捷键大全</span></a></li></ol>
</div></main>
          <aside class="left-column">
            
            <div class="card card-author">
              
<img src="/img/ic_head.jpg" class="author-img">

<p class="author-name">Cupster</p>
<p class="author-description">深山磨柴斧，一鸣震江湖</p>
<div class="author-message">
  <a class="author-posts-count" href="/archives">
    <span>66</span>
    <span>文章</span>
  </a>
  <a class="author-categories-count" href="/categories">
    <span>5</span>
    <span>分类</span>
  </a>
  <a class="author-tags-count" href="/tags">
    <span>31</span>
    <span>标签</span>
  </a>
</div>

<div class="author-card-society">
  
    <div class="author-card-society-icon">
      <a target="_blank" rel="noopener" href="https://cupster.blog.csdn.net/">
        <i class="iconfont /img/ic_csdn.png society-icon"></i>
      </a>
    </div>
  
</div>

            </div>
            
            <div class="sticky-tablet">
  
  
  <article class="display-when-two-columns spacer">
    <div class="card card-content toc-card">
      <div class="toc-header"><i class="iconfont icon-menu" style="padding-right: 2px;"></i>目录</div>
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#1-%E7%AE%80%E4%BB%8B"><span class="toc-text">1.简介</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Scrcpy%E5%87%A0%E4%B9%8E%E9%9B%86%E6%8A%95%E5%B1%8F%E6%8E%A7%E5%88%B6%E8%BD%AF%E4%BB%B6%E7%9A%84%E6%89%80%E6%9C%89%E4%BC%98%E7%82%B9"><span class="toc-text">Scrcpy几乎集投屏控制软件的所有优点</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BC%BA%E7%82%B9%E4%B9%9F%E8%BF%98%E6%98%AF%E6%9C%89%EF%BC%8C%E4%BD%86%E6%98%AF%E6%97%A0%E5%85%B3%E7%B4%A7%E8%A6%81%E5%90%A7"><span class="toc-text">缺点也还是有，但是无关紧要吧</span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#2-%E5%AE%89%E8%A3%85"><span class="toc-text">2.安装</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#2-1Windows-%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85"><span class="toc-text">2.1Windows 直接下载并安装</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-2Mac%E9%9C%80%E4%BD%BF%E7%94%A8HomeBrew%E5%91%BD%E4%BB%A4%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85"><span class="toc-text">2.2Mac需使用HomeBrew命令进行安装</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-1-%E5%AE%89%E8%A3%85HomeBrew%EF%BC%8C%E5%B7%B2%E5%AE%89%E8%A3%85%E5%8F%AF%E8%B7%B3%E8%BF%87"><span class="toc-text">2.2.1.安装HomeBrew，已安装可跳过</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-2-%E5%AE%89%E8%A3%85-adb%EF%BC%8C%E5%B7%B2%E5%AE%89%E8%A3%85%E5%8F%AF%E8%B7%B3%E8%BF%87"><span class="toc-text">2.2.2.安装 adb，已安装可跳过</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-3-%E5%AE%89%E8%A3%85-Scrcpy"><span class="toc-text">2.2.3.安装 Scrcpy</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#3-%E4%BD%BF%E7%94%A8"><span class="toc-text">3.使用</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#3-1-%E4%BD%BF%E7%94%A8%E6%9D%A1%E4%BB%B6"><span class="toc-text">3.1 使用条件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#3-2-%E4%BD%BF%E7%94%A8"><span class="toc-text">3.2 使用</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#3-2-1%E5%8D%95%E8%AE%BE%E5%A4%87"><span class="toc-text">3.2.1单设备</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#3-2-2%E5%A4%9A%E8%AE%BE%E5%A4%87"><span class="toc-text">3.2.2多设备</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#4-scrcpy%E5%91%BD%E4%BB%A4%E5%A4%A7%E5%85%A8-%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8"><span class="toc-text">4.scrcpy命令大全&#x2F;快捷键大全</span></a></li></ol>
    </div>
  </article>
  
  
  <article class="card card-content categories-widget">
    <div class="categories-card">
  <div class="categories-header"><i class="iconfont icon-fenlei" style="padding-right: 2px;"></i>分类</div>
  <div class="categories-list">
    
      <a href="/categories/Android/">
        <div class="categories-list-item">
          Android
          <span class="categories-list-item-badge">38</span>
        </div>
      </a>
    
      <a href="/categories/Linux/">
        <div class="categories-list-item">
          Linux
          <span class="categories-list-item-badge">6</span>
        </div>
      </a>
    
      <a href="/categories/Dev-Base/">
        <div class="categories-list-item">
          Dev-Base
          <span class="categories-list-item-badge">12</span>
        </div>
      </a>
    
      <a href="/categories/Kotlin/">
        <div class="categories-list-item">
          Kotlin
          <span class="categories-list-item-badge">9</span>
        </div>
      </a>
    
      <a href="/categories/自动化脚本/">
        <div class="categories-list-item">
          自动化脚本
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
  </div>
</div>
  </article>
  
  <article class="card card-content tags-widget">
    <div class="tags-card">
  <div class="tags-header"><i class="iconfont icon-biaoqian" style="padding-right: 2px;"></i>热门标签</div>
  <div class="tags-list">
    
    <a href="/tags/Android/" title="Android"><div class="tags-list-item">Android</div></a>
    
    <a href="/tags/Android自定义View/" title="Android自定义View"><div class="tags-list-item">Android自定义View</div></a>
    
    <a href="/tags/MacOS/" title="MacOS"><div class="tags-list-item">MacOS</div></a>
    
    <a href="/tags/Kotlin/" title="Kotlin"><div class="tags-list-item">Kotlin</div></a>
    
    <a href="/tags/Android持久化/" title="Android持久化"><div class="tags-list-item">Android持久化</div></a>
    
    <a href="/tags/CentOS/" title="CentOS"><div class="tags-list-item">CentOS</div></a>
    
    <a href="/tags/Linux/" title="Linux"><div class="tags-list-item">Linux</div></a>
    
    <a href="/tags/Android事件/" title="Android事件"><div class="tags-list-item">Android事件</div></a>
    
    <a href="/tags/Android基础/" title="Android基础"><div class="tags-list-item">Android基础</div></a>
    
    <a href="/tags/Android手势/" title="Android手势"><div class="tags-list-item">Android手势</div></a>
    
    <a href="/tags/Scrcpy/" title="Scrcpy"><div class="tags-list-item">Scrcpy</div></a>
    
    <a href="/tags/Android动画/" title="Android动画"><div class="tags-list-item">Android动画</div></a>
    
    <a href="/tags/Git/" title="Git"><div class="tags-list-item">Git</div></a>
    
    <a href="/tags/Java/" title="Java"><div class="tags-list-item">Java</div></a>
    
    <a href="/tags/Docker/" title="Docker"><div class="tags-list-item">Docker</div></a>
    
    <a href="/tags/Android-Dialog/" title="Android Dialog"><div class="tags-list-item">Android Dialog</div></a>
    
  </div>
</div>
  </article>
  
  
</div>
          </aside>
          <aside class="right-column">
            <div class="sticky-widescreen">
  
  
  <article class="card card-content toc-card">
    <div class="toc-header"><i class="iconfont icon-menu" style="padding-right: 2px;"></i>目录</div>
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#1-%E7%AE%80%E4%BB%8B"><span class="toc-text">1.简介</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Scrcpy%E5%87%A0%E4%B9%8E%E9%9B%86%E6%8A%95%E5%B1%8F%E6%8E%A7%E5%88%B6%E8%BD%AF%E4%BB%B6%E7%9A%84%E6%89%80%E6%9C%89%E4%BC%98%E7%82%B9"><span class="toc-text">Scrcpy几乎集投屏控制软件的所有优点</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BC%BA%E7%82%B9%E4%B9%9F%E8%BF%98%E6%98%AF%E6%9C%89%EF%BC%8C%E4%BD%86%E6%98%AF%E6%97%A0%E5%85%B3%E7%B4%A7%E8%A6%81%E5%90%A7"><span class="toc-text">缺点也还是有，但是无关紧要吧</span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#2-%E5%AE%89%E8%A3%85"><span class="toc-text">2.安装</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#2-1Windows-%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85"><span class="toc-text">2.1Windows 直接下载并安装</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#2-2Mac%E9%9C%80%E4%BD%BF%E7%94%A8HomeBrew%E5%91%BD%E4%BB%A4%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85"><span class="toc-text">2.2Mac需使用HomeBrew命令进行安装</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-1-%E5%AE%89%E8%A3%85HomeBrew%EF%BC%8C%E5%B7%B2%E5%AE%89%E8%A3%85%E5%8F%AF%E8%B7%B3%E8%BF%87"><span class="toc-text">2.2.1.安装HomeBrew，已安装可跳过</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-2-%E5%AE%89%E8%A3%85-adb%EF%BC%8C%E5%B7%B2%E5%AE%89%E8%A3%85%E5%8F%AF%E8%B7%B3%E8%BF%87"><span class="toc-text">2.2.2.安装 adb，已安装可跳过</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-2-3-%E5%AE%89%E8%A3%85-Scrcpy"><span class="toc-text">2.2.3.安装 Scrcpy</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#3-%E4%BD%BF%E7%94%A8"><span class="toc-text">3.使用</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#3-1-%E4%BD%BF%E7%94%A8%E6%9D%A1%E4%BB%B6"><span class="toc-text">3.1 使用条件</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#3-2-%E4%BD%BF%E7%94%A8"><span class="toc-text">3.2 使用</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#3-2-1%E5%8D%95%E8%AE%BE%E5%A4%87"><span class="toc-text">3.2.1单设备</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#3-2-2%E5%A4%9A%E8%AE%BE%E5%A4%87"><span class="toc-text">3.2.2多设备</span></a></li></ol></li></ol></li></ol></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#4-scrcpy%E5%91%BD%E4%BB%A4%E5%A4%A7%E5%85%A8-%E5%BF%AB%E6%8D%B7%E9%94%AE%E5%A4%A7%E5%85%A8"><span class="toc-text">4.scrcpy命令大全&#x2F;快捷键大全</span></a></li></ol>
  </article>
  
  
  <article class="card card-content">
    <div class="recent-posts-card">
  <div class="recent-posts-header"><i class="iconfont icon-wenzhang_huaban" style="padding-right: 2px;"></i>最近文章</div>
  <div class="recent-posts-list">
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-03-02</div>
        <a href="/2021/03/02/Git commit规范/"><div class="recent-posts-item-content">Git commit规范</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-02-16</div>
        <a href="/2021/02/16/AutoJS一文精通AutoJS脚本教程详解/"><div class="recent-posts-item-content">AutoJS一文精通AutoJS脚本教程详解</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-01-21</div>
        <a href="/2021/01/21/架构师进阶：注解Annotation全解/"><div class="recent-posts-item-content">架构师进阶：注解Annotation全解</div></a>
      </div>
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2021-01-06</div>
        <a href="/2021/01/06/ConstraintLayout详解/"><div class="recent-posts-item-content">ConstraintLayout详解</div></a>
      </div>
    
  </div>
</div>
  </article>
  
  
</div>
          </aside>
        </div>
      </div>
    </div>
  </div>
  
  <footer class="footer">
  <div class="footer-container">
    <div>
      <div class="footer-dsc">
        <span>Copyright ©
          
          2020 -
          
          2021
        </span>
        &nbsp;
        <a href="/" class="footer-link">不负明天 </a>
      </div>
    </div>

    
    <div class="footer-dsc">
      
      Powered by
      <a href="https://hexo.io/" class="footer-link" target="_blank" rel="nofollow noopener noreferrer">&nbsp;Hexo </a>
      
      
      <span>&nbsp;|&nbsp;</span>
      
      
      Theme -
      <a href="https://github.com/theme-kaze" class="footer-link" target="_blank"
        rel="nofollow noopener noreferrer">&nbsp;Kaze</a>
      
    </div>
    
    
    
    
      <div class="footer-dsc">
        
        本站总访问量686<span id="busuanzi_value_site_pv"></span>次
        
        
        <span>&nbsp;|&nbsp;</span>
        
        
        本站总访客数219<span id="busuanzi_value_site_uv"></span>次
        
      </div>
      
    
</footer>
  <a role="button" id="scrollbutton" class="basebutton"  aria-label="回到顶部">
  <i class="iconfont icon-arrowleft button-icon"></i>
</a>
<a role="button" id="menubutton" class="basebutton">
  <i class="iconfont icon-menu button-icon"></i>
</a>
<a role="button" id="popbutton" class="basebutton" aria-label="控制中心">
  <i class="iconfont icon-expand button-icon"></i>
</a>
<a role="button" id="darkbutton" class="basebutton darkwidget" aria-label="夜色模式">
  <i class="iconfont icon-weather button-icon"></i>
</a>
<a role="button" id="searchbutton" class="basebutton searchwidget" aria-label="搜索">
  <i class="iconfont icon-search button-icon"></i>
</a>

  
  
  
  <script>
  var addImgLayout = function () {
    var img = document.querySelectorAll('.post-content img');
    var i;
    for (i = 0; i < img.length; i++) {
      var wrapper = document.createElement('a');
      wrapper.setAttribute('href', img[i].getAttribute('data-src'));
      wrapper.setAttribute('aria-label', 'illustration');
      wrapper.style.cssText = 'width: 100%; display: flex; justify-content: center;';
      if (img[i].alt) wrapper.dataset.caption = img[i].alt;
      wrapper.dataset.nolink = true;
      img[i].before(wrapper);
      wrapper.append(img[i]);
      var divWrap = document.createElement('div');
      divWrap.classList.add('gallery');
      wrapper.before(divWrap);
      divWrap.append(wrapper);
    }
    baguetteBox.run('.gallery');
  }
</script>
<script>loadScript("/js/lib/lightbox/baguetteBox.min.js", addImgLayout)</script>
  
  
  
<script src="/js/main.js"></script>

  
  <script>loadScript("/js/lib/busuanzi.min.js")</script>
  
  
  <script>
    var addLazyload = function () {
      var observer = lozad('.lozad', {
        load: function (el) {
          el.srcset = el.getAttribute('data-src');
        },
        loaded: function (el) {
          el.classList.add('loaded');
        }
      });
      observer.observe();
    }
  </script>
  <script>loadScript("/js/lib/lozad.min.js", addLazyload)</script>
  
  
</body>

</html>